package com.ruoyi.car.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.ruoyi.car.entity.CarPaymentMethod;
import com.ruoyi.car.service.CarPaymentMethodService;
import com.ruoyi.car.mapper.CarPaymentMethodMapper;
import com.ruoyi.common.core.page.PageReq;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 11452
* @description 针对表【car_payment_method(收款方式表)】的数据库操作Service实现
* @createDate 2023-06-05 14:31:47
*/
@Service
public class CarPaymentMethodServiceImpl extends ServiceImpl<CarPaymentMethodMapper, CarPaymentMethod>
    implements CarPaymentMethodService{
    @Autowired
    private CarPaymentMethodMapper carPaymentMethodMapper;
    @Override
    public PageInfo<CarPaymentMethod> search(PageReq req) {
        return  PageHelper.startPage(req.getPage(),req.getSize())
                .doSelectPageInfo(()->{
                    //查询数据
                    carPaymentMethodMapper.selectList(null);
                });
    }
}




